<?php
/**
 * Created by PhpStorm
 * User: Jhinwy
 * Date: 5/28/24
 * Time: 3:33 PM
 */

namespace App\Models;

class WechatAccountCategory extends BaseModel
{
    protected $table = 'wechat_account_category';

    protected $fillable = [
        'id', 'corp_id', 'user_id', 'category_id'
    ];


    public function user()
    {
        return $this->belongsTo(WechatAccount::class, 'user_id', 'user_id');
    }


    public function category()
    {
        return $this->belongsTo(WechatCategory::class, 'category_id');
    }
}
